/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tdp_precioDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression pre_id;
	public final IntegerExpression pre_monto;
	public final StringExpression pre_fecha;
	
	public Tdp_precioDetachedCriteria() {
		super(orm.Tdp_precio.class, orm.Tdp_precioCriteria.class);
		pre_id = new IntegerExpression("pre_id", this.getDetachedCriteria());
		pre_monto = new IntegerExpression("pre_monto", this.getDetachedCriteria());
		pre_fecha = new StringExpression("pre_fecha", this.getDetachedCriteria());
	}
	
	public Tdp_precioDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tdp_precioCriteria.class);
		pre_id = new IntegerExpression("pre_id", this.getDetachedCriteria());
		pre_monto = new IntegerExpression("pre_monto", this.getDetachedCriteria());
		pre_fecha = new StringExpression("pre_fecha", this.getDetachedCriteria());
	}
	
	public Tda_tipoGasolinaDetachedCriteria createTda_tipoGasolinaCriteria() {
		return new Tda_tipoGasolinaDetachedCriteria(createCriteria("ORM_Tda_tipoGasolina"));
	}
	
	public Tdp_precio uniqueTdp_precio(PersistentSession session) {
		return (Tdp_precio) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tdp_precio[] listTdp_precio(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tdp_precio[]) list.toArray(new Tdp_precio[list.size()]);
	}
}

